package com.oo.inherit_3.athlete;

/**
 * Athlete--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 11:20
 **/
public class Athlete extends Person {

    private String item;

    private String score;

    public Athlete(String name, int age, String sex, String item, String score) {
        super(name, age, sex);
        this.item = item;
        this.score = score;
    }

    public Athlete(String name, int age, String sex) {
        super(name, age, sex);
    }

    public Athlete() {
    }

    @Override
    public void intro() {
        System.out.println("大家好！我是"+this.getName()
        +"\n今年"+this.getAge()+"\n我擅长的项目是："+this.getItem()
        +"\n历史最好成绩是："+this.getScore());
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }
}
